const localStorageSet = function (key, value) {
  return window.localStorage.setItem(key, JSON.stringify(value))
}

const localStorageGet = function (key) {
  let result = window.localStorage.getItem(key)

  return result ? JSON.parse(result) : null
}

const localStorageRemove = function (key) {
  return window.localStorage.removeItem(key)
}

export {localStorageSet,localStorageGet,localStorageRemove}
